//
//  MainController.swift
//  edu
//
//  Created by karlzhou on 15/10/29.
//  Copyright (c) 2015年 karlzhou. All rights reserved.
//

import UIKit

class MainController: BaseTabBarController {
    var homeContr:UIViewController!
    var myContr:UIViewController!
    var subjectVC: UIViewController!
    var homeBarItem:UITabBarItem!
    var myBarItem:UITabBarItem!
    var subjectItem: UITabBarItem!
    override func viewDidLoad() {
        super.viewDidLoad()
        homeContr=HomeController()
        
        myContr=MyController()
        
       subjectVC=Sr1ViewController()
        
        //subjectVC=(rootViewController: sr1VC)
        //var testVC = TestViewController()
        
        self.homeBarItem=self.addTab("首页",image:"ico_home",selectImage:"ico_home_pressed", controller: homeContr)
        self.myBarItem=self.addTab("我的", image: "ico_me",selectImage:"ico_me_pressed", controller: myContr)
        self.subjectItem=self.addTab("列表", image: "", selectImage: "", controller: subjectVC)
       // self.addTab("test", image: "", selectImage: "", controller: testVC)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
           }
    

}
